﻿@model EasyLift.TMS.Web.Models.DriverViewModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/MicrosoftMvcValidation.js")" type="text/javascript"></script>
<script type="text/javascript">

    $(function () {
        $("#Driver_DateOfBirth").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });
        $("#Driver_PassportDateOfIssue").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });
        $("#Driver_PassportDateOfExpiry").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });
        $("#Driver_ExpectedDateOfJoining").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });
        $("#Driver_DateOfJoining").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_ResidencyExpairyDate").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_CivilIDExpairyDate").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_DrivingLicenceExpiryDate").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_ShuaibaPassExpiryDate").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_J2SouthPassExpiry").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_J2NorthPassExpiry").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_USFVirginiaBadgeExpiry").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });

        $("#Driver_ASGKUBadgeExpiry").datepicker({
            dateFormat: 'mm/dd/yy',
            numberOfMonths: 1,
            showButtonPanel: true,
            changeMonth: true,
            changeYear: true
        });
    });
</script>

<style type="text/css">
    .ui-autocomplete-loading
    {
        background: white url('/Content/ui-anim_basic_16x16.gif') right center no-repeat;
    }
</style>

<script type="text/javascript">
    $(function () {

        $("#Driver_VehicleAssigned").autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: "/Vehicle/GridData",
                    dataType: "json",
                    data: {
                        sidx: "VehicleNumber",
                        sord: "DESC",
                        page: 1,
                        rows: 10,
                        _search: true,
                        searchField: "VehicleNumber",
                        searchOper: "cn",
                        searchString: request.term
                    },
                    success: function (data) {
                        response($.map(data.rows, function (item) {
                            return {
                                label: item.cell[1].toString(),
                                value: item.id,
                                plateNo: item.cell[2].toString(),
                                company: item.cell[3].toString(),
                                status: item.cell[6].toString(),
                                id: item.id
                            }
                        }));
                    }
                });
            },
            minLength: 0,
            delay: 100,
            focus: function (event, ui) {
                $(this).val(ui.item.value);
                return false;
            },
            select: function (event, ui) {
                $("#Driver_VehicleAssigned").val(ui.item.id);
                return false;
            },
            open: function () {
                $(this).removeClass("ui-corner-all").addClass("ui-corner-top");
            },
            close: function () {
                $(this).removeClass("ui-corner-top").addClass("ui-corner-all");
            }
        })
        .data("autocomplete")._renderItem = function (ul, item) {
            return $("<li></li>")
				.data("item.autocomplete", item)
				.append("<a><span class='ui-icon ui-icon-print' style='float: left; margin-right: .3em;'></span>" + item.id + "<br>" + item.label + "," + item.plateNo + "," + item.company + "<br>" + item.status + "</a>")
				.appendTo(ul);
        };

        $("#Driver_VehicleAssigned").focus(function () { $(this).keydown(); })

    });
</script>

@{ Html.EnableClientValidation(); }

@{
   
  
  string strAction = "Create";
  if (Request.Url.ToString().Contains("/Edit/"))
  {
      strAction = "Edit";
  }

  using (Html.BeginForm(strAction, "Driver", new { id = Model.Driver.CivilID }, FormMethod.Post, new { enctype = "multipart/form-data" }))
  {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Driver</legend>
        <div class="newline">
            <div class="sameline-wrapper">

        <div id="ActionLinkButtons">
            <input type="submit" value="Save" />
            @Html.ActionLink("Back to List", "Index")
        </div>
           </div>
           </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.CivilID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.CivilID)
            @Html.ValidationMessageFor(model => model.Driver.CivilID)
        </div>        
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.FirstName)
            @Html.ValidationMessageFor(model => model.Driver.FirstName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.MiddleName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.MiddleName)
            @Html.ValidationMessageFor(model => model.Driver.MiddleName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.LastName)
            @Html.ValidationMessageFor(model => model.Driver.LastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ArabicFirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ArabicFirstName)
            @Html.ValidationMessageFor(model => model.Driver.ArabicFirstName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ArabicMiddleName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ArabicMiddleName)
            @Html.ValidationMessageFor(model => model.Driver.ArabicMiddleName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ArabicLastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ArabicLastName)
            @Html.ValidationMessageFor(model => model.Driver.ArabicLastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.CountryCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.CountryCode)
            @Html.ValidationMessageFor(model => model.Driver.CountryCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Nationality)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Nationality)
            @Html.ValidationMessageFor(model => model.Driver.Nationality)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.NationalityInArabic)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.NationalityInArabic)
            @Html.ValidationMessageFor(model => model.Driver.NationalityInArabic)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DateOfBirth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DateOfBirth)
            @Html.ValidationMessageFor(model => model.Driver.DateOfBirth)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Age)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Age)
            @Html.ValidationMessageFor(model => model.Driver.Age)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.SpouseName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.SpouseName)
            @Html.ValidationMessageFor(model => model.Driver.SpouseName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.FathersName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.FathersName)
            @Html.ValidationMessageFor(model => model.Driver.FathersName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.GrandFathersName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.GrandFathersName)
            @Html.ValidationMessageFor(model => model.Driver.GrandFathersName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.GrandMothersName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.GrandMothersName)
            @Html.ValidationMessageFor(model => model.Driver.GrandMothersName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.MothersName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.MothersName)
            @Html.ValidationMessageFor(model => model.Driver.MothersName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.MothersFatherName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.MothersFatherName)
            @Html.ValidationMessageFor(model => model.Driver.MothersFatherName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.MartialStatus)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.MartialStatus)
            @Html.ValidationMessageFor(model => model.Driver.MartialStatus)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.CityOfBirth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.CityOfBirth)
            @Html.ValidationMessageFor(model => model.Driver.CityOfBirth)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PlaceOfBirth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PlaceOfBirth)
            @Html.ValidationMessageFor(model => model.Driver.PlaceOfBirth)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.EyeColor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.EyeColor)
            @Html.ValidationMessageFor(model => model.Driver.EyeColor)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.HairColor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.HairColor)
            @Html.ValidationMessageFor(model => model.Driver.HairColor)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.HeightInCM)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.HeightInCM)
            @Html.ValidationMessageFor(model => model.Driver.HeightInCM)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.HeightInFeet)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.HeightInFeet)
            @Html.ValidationMessageFor(model => model.Driver.HeightInFeet)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.WeightInKG)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.WeightInKG)
            @Html.ValidationMessageFor(model => model.Driver.WeightInKG)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.WeightInLbs)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.WeightInLbs)
            @Html.ValidationMessageFor(model => model.Driver.WeightInLbs)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Race)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Race)
            @Html.ValidationMessageFor(model => model.Driver.Race)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Religion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Religion)
            @Html.ValidationMessageFor(model => model.Driver.Religion)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.BloodGroup)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.BloodGroup)
            @Html.ValidationMessageFor(model => model.Driver.BloodGroup)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PermanentAddess)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PermanentAddess)
            @Html.ValidationMessageFor(model => model.Driver.PermanentAddess)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.LocalAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.LocalAddress)
            @Html.ValidationMessageFor(model => model.Driver.LocalAddress)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Education)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Education)
            @Html.ValidationMessageFor(model => model.Driver.Education)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Specialization)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Specialization)
            @Html.ValidationMessageFor(model => model.Driver.Specialization)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.SocialSecurityNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.SocialSecurityNo)
            @Html.ValidationMessageFor(model => model.Driver.SocialSecurityNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PassportNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PassportNo)
            @Html.ValidationMessageFor(model => model.Driver.PassportNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PassportDateOfIssue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PassportDateOfIssue)
            @Html.ValidationMessageFor(model => model.Driver.PassportDateOfIssue)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PassportDateOfExpiry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PassportDateOfExpiry)
            @Html.ValidationMessageFor(model => model.Driver.PassportDateOfExpiry)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PassportPlaceOfIssue)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PassportPlaceOfIssue)
            @Html.ValidationMessageFor(model => model.Driver.PassportPlaceOfIssue)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.MasterListNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.MasterListNo)
            @Html.ValidationMessageFor(model => model.Driver.MasterListNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.EmployeeNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.EmployeeNo)
            @Html.ValidationMessageFor(model => model.Driver.EmployeeNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ExternalEmployeeNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ExternalEmployeeNo)
            @Html.ValidationMessageFor(model => model.Driver.ExternalEmployeeNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ContactNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ContactNo)
            @Html.ValidationMessageFor(model => model.Driver.ContactNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ExtensionNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ExtensionNo)
            @Html.ValidationMessageFor(model => model.Driver.ExtensionNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.FaxNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.FaxNo)
            @Html.ValidationMessageFor(model => model.Driver.FaxNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.NextOfKin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.NextOfKin)
            @Html.ValidationMessageFor(model => model.Driver.NextOfKin)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.KinRelationship)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.KinRelationship)
            @Html.ValidationMessageFor(model => model.Driver.KinRelationship)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.KinContactNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.KinContactNo)
            @Html.ValidationMessageFor(model => model.Driver.KinContactNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.KinNativelLanguage)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.KinNativelLanguage)
            @Html.ValidationMessageFor(model => model.Driver.KinNativelLanguage)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DepartmentCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DepartmentCode)
            @Html.ValidationMessageFor(model => model.Driver.DepartmentCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DesignationCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DesignationCode)
            @Html.ValidationMessageFor(model => model.Driver.DesignationCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.CompanyCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.CompanyCode)
            @Html.ValidationMessageFor(model => model.Driver.CompanyCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DesignationArabic)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DesignationArabic)
            @Html.ValidationMessageFor(model => model.Driver.DesignationArabic)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.LeaveEntitled)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.LeaveEntitled)
            @Html.ValidationMessageFor(model => model.Driver.LeaveEntitled)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.LeaveAccrued)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.LeaveAccrued)
            @Html.ValidationMessageFor(model => model.Driver.LeaveAccrued)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.AccomodationCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.AccomodationCode)
            @Html.ValidationMessageFor(model => model.Driver.AccomodationCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.PayByCash)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.PayByCash)
            @Html.ValidationMessageFor(model => model.Driver.PayByCash)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.BankName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.BankName)
            @Html.ValidationMessageFor(model => model.Driver.BankName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.BankAccountNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.BankAccountNo)
            @Html.ValidationMessageFor(model => model.Driver.BankAccountNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ExpectedDateOfJoining)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ExpectedDateOfJoining)
            @Html.ValidationMessageFor(model => model.Driver.ExpectedDateOfJoining)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DateOfJoining)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DateOfJoining)
            @Html.ValidationMessageFor(model => model.Driver.DateOfJoining)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ResidencyNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ResidencyNo)
            @Html.ValidationMessageFor(model => model.Driver.ResidencyNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ResidencyExpairyDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ResidencyExpairyDate)
            @Html.ValidationMessageFor(model => model.Driver.ResidencyExpairyDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.CivilIDExpairyDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.CivilIDExpairyDate)
            @Html.ValidationMessageFor(model => model.Driver.CivilIDExpairyDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DrivingLicenceNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DrivingLicenceNo)
            @Html.ValidationMessageFor(model => model.Driver.DrivingLicenceNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DrivingLicenceExpiryDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DrivingLicenceExpiryDate)
            @Html.ValidationMessageFor(model => model.Driver.DrivingLicenceExpiryDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ShuaibaPassNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ShuaibaPassNo)
            @Html.ValidationMessageFor(model => model.Driver.ShuaibaPassNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ShuaibaPassExpiryDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ShuaibaPassExpiryDate)
            @Html.ValidationMessageFor(model => model.Driver.ShuaibaPassExpiryDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ShuaibaPassRemarks)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ShuaibaPassRemarks)
            @Html.ValidationMessageFor(model => model.Driver.ShuaibaPassRemarks)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.J2SouthPassNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.J2SouthPassNo)
            @Html.ValidationMessageFor(model => model.Driver.J2SouthPassNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.J2SouthPassExpiry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.J2SouthPassExpiry)
            @Html.ValidationMessageFor(model => model.Driver.J2SouthPassExpiry)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.J2SouthPassRemark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.J2SouthPassRemark)
            @Html.ValidationMessageFor(model => model.Driver.J2SouthPassRemark)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.J2NorthPassNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.J2NorthPassNo)
            @Html.ValidationMessageFor(model => model.Driver.J2NorthPassNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.J2NorthPassExpiry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.J2NorthPassExpiry)
            @Html.ValidationMessageFor(model => model.Driver.J2NorthPassExpiry)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.J2NorthPassRemarks)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.J2NorthPassRemarks)
            @Html.ValidationMessageFor(model => model.Driver.J2NorthPassRemarks)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.USFVirginiaBadgeNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.USFVirginiaBadgeNo)
            @Html.ValidationMessageFor(model => model.Driver.USFVirginiaBadgeNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.USFVirginiaBadgeExpiry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.USFVirginiaBadgeExpiry)
            @Html.ValidationMessageFor(model => model.Driver.USFVirginiaBadgeExpiry)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.USFVirginiaBadgeRemarks)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.USFVirginiaBadgeRemarks)
            @Html.ValidationMessageFor(model => model.Driver.USFVirginiaBadgeRemarks)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ASGKUBadgeNo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ASGKUBadgeNo)
            @Html.ValidationMessageFor(model => model.Driver.ASGKUBadgeNo)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ASGKUBadgeExpiry)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ASGKUBadgeExpiry)
            @Html.ValidationMessageFor(model => model.Driver.ASGKUBadgeExpiry)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ASGKUBadgeRemarks)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ASGKUBadgeRemarks)
            @Html.ValidationMessageFor(model => model.Driver.ASGKUBadgeRemarks)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.TrainingRemark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.TrainingRemark)
            @Html.ValidationMessageFor(model => model.Driver.TrainingRemark)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.ViolationRemark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.ViolationRemark)
            @Html.ValidationMessageFor(model => model.Driver.ViolationRemark)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.AccidentRemark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.AccidentRemark)
            @Html.ValidationMessageFor(model => model.Driver.AccidentRemark)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Remark1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Remark1)
            @Html.ValidationMessageFor(model => model.Driver.Remark1)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Remark2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Remark2)
            @Html.ValidationMessageFor(model => model.Driver.Remark2)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Remark3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Remark3)
            @Html.ValidationMessageFor(model => model.Driver.Remark3)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Remark4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Remark4)
            @Html.ValidationMessageFor(model => model.Driver.Remark4)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Remark5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Remark5)
            @Html.ValidationMessageFor(model => model.Driver.Remark5)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.Remark6)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.Remark6)
            @Html.ValidationMessageFor(model => model.Driver.Remark6)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.VehicleAssigned)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.VehicleAssigned, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Driver.VehicleAssigned)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DriverMissionStatusCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Driver.DriverMissionStatus.DriverMissionStatusDescription, new { disabled="disabled", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Driver.DriverMissionStatusCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Driver.DriverHRStatusCode)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Driver.DriverHRStatusCode, Model.HRStatus)
            @Html.ValidationMessageFor(model => model.Driver.DriverHRStatusCode)
        </div>
                <div class="newline">
            <div class="sameline-wrapper">

        <div id="ActionLinkButtonsBottom">
            <input type="submit" value="Save" />
            @Html.ActionLink("Back to List", "Index")
        </div>
        </div>
        </div>
    </fieldset>
  }
}

